/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.dahg.project.controller.model.beans.impl;

import javax.ejb.Stateless;
import org.dahg.project.controller.model.Categoria;
import org.dahg.project.controller.model.beans.AbstractBean;
import org.dahg.project.controller.model.services.local.CategoriaService;

/**
 *
 * @author dahg
 */
@Stateless
public class CategoriaServiceImpl extends AbstractBean<Categoria> implements CategoriaService {

    @Override
    protected Class<Categoria> getClazz() {
        return Categoria.class;
    }

    @Override
    public void remove(Categoria obj) {
        String delete="delete from Categoria c where c.id=:id";
        remove(delete, obj.getId());
    }
    
}
